package com.qingke.oms.command.shop;

import com.qingke.oms.command.ShopCommand;
import com.qingke.oms.pojo.Shop;
import com.qingke.oms.pojo.User;
import com.qingke.oms.util.OMSConsole;

public class ShopHelpCommand extends ShopCommand {

	public ShopHelpCommand(User user, Shop shop) {
		super(user, shop);
	}

	@Override
	public void execute() {
		if(user.getId()==shop.getOwnerId()){
			OMSConsole.println("- on shelf         goods on shelf");
			OMSConsole.println("- off shelf        goods off shelf");
			OMSConsole.println("- delivery         delivery goods");
			OMSConsole.println("- status           look shop status");
			OMSConsole.println("- set price        set price of a goods");
		}
		
		OMSConsole.println("- goods            view godos");
		OMSConsole.println("- add              add goods to shopping cart");
		OMSConsole.println("- delete           delete goods from shopping cart");
		OMSConsole.println("- cart             view shopping cart");
		OMSConsole.println("- order            place order");
		OMSConsole.println("- empty            empty shopping cart");
		OMSConsole.println("- leave            leave the shop.");
	}

}
